package com.knife.blog.logic;

import java.util.Map;

public class BlogAdminConfig {
	private final Map admins = new java.util.HashMap();

	private static BlogAdminConfig singleton = new BlogAdminConfig();

	public static BlogAdminConfig getInstance() {
		return singleton;
	}

	private BlogAdminConfig() {
		this.admins.put("admin", "admin");
	}

	public boolean isAdmin(String username) {
		return admins.containsKey(username);
	}
}
